-- GENERATED SPELL FOR [Warbringer Arix'Amal] --


function spell0_19298(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19298', 549, 1)
end

function spell1_19298(pUnit, Event) --@Cutdown,n/a--
pUnit:FullCastSpellOnTarget(32009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19298', 547, 1)
end

function Sorts_19298(pUnit, Event)
local choix_sorts_19298 = math.random(0, 1)
if choix_sorts_19298 == 0 then
pUnit:RegisterEvent('spell0_19298', 1, 1)
end
if choix_sorts_19298 == 1 then
pUnit:RegisterEvent('spell1_19298', 1, 1)
end
end

function mob19298_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19298', math.random(1500, 3000), 1)
end

function mob19298_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19298_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19298_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19298, 1, 'mob19298_Action')
RegisterUnitEvent(19298, 2, 'mob19298_Leave')
RegisterUnitEvent(19298, 3, 'mob19298_Kill')
RegisterUnitEvent(19298, 4, 'mob19298_Die')
